import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./mixins";
import "./filters/datefmt";
import * as http from "./api";
import "lib-flexible";
import store from "./store";

import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
Vue.use(MintUI);

import { Lazyload, Toast, Dialog } from "vant";
Vue.use(Lazyload, {
  lazyComponent: true,
  loading:
    "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fzhengyongshun.com%2Fwp-content%2Fuploads%2F2017%2F02%2Ftimg-1.gif&refer=http%3A%2F%2Fzhengyongshun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1654736475&t=2f2df2e5de40bbf6f1d7f4bcf4c698b8",
});
Vue.use(Toast);
Vue.use(Dialog);
// 挂载请求到全局属性，这样在任意的组件都可以直接使用
Vue.prototype.$http = http;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
